﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Themes/Default/Stylesheet/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/jquery-plugin.js"></script>
</head>

<body>
    <div class="wrapper">
        <div id="header">
            <div class="clear"></div>
            <div id="logo" style="float: left; width: 100px; text-align: center;">
                <a href="/">
                    <img alt="Logo" src="/Content/Themes/Default/Image/logo.gif" width="150px" height="80px" />
                </a> 
            </div>
            <div id="address" style="margin-left: 200px; vertical-align: middle;">
                <div id="global-menu" class="hnav">
                    @Html.Partial("_GlobalMenuPartial")
                </div>
                <div class="breadcrumb">
                    @Html.Partial("_BreadcrumbPartial")
                    <div class="clear"></div>
                </div>
            </div>
            @if (Request.Browser.Browser == "IE")
            {
                <!--  Code for IE vml goes here... -->
            }
        </div>

        <div id="body" style="position: relative">
            <div id="filter-menu" class="vnav"
                style="position: absolute; width: 192px; left: 0; top: 0px; background-color: #E5E5E5;">
                @if (Url.RequestContext.RouteData.GetRequiredString("Controller") == "Home")
                {
                    @Html.Partial("_CategoryNavPartial")
                }
                else
                {
                    @Html.Partial("_FilterNavPartial")
                }
            </div>
            <div id ="main"
                style="margin-left: 200px;">
                <div id="content">
                    <div class="clear"></div>
                    @RenderBody()
                    <div class="clear"></div>
                </div>


                <div id="footer">
                    Footer here...<br />
                    Copyright © 2011. All rights reserved.
                    <br />
                    <a href="http://www.google.com.vn">Terms of Use</a>     
                    <a href="http://www.google.com.vn">Privacy Policy</a>
                </div>
            </div>
        </div>
    </div>

    <div id="debug">
        Debug goes here
        @Request.Url.Authority <br />
        @Request.Path <br />
        @Request.PhysicalApplicationPath <br />
        @Request.PhysicalPath <br />
        @Request.PathInfo <br />
        @Request.RawUrl <br />
        @Url.RequestContext.RouteData.GetRequiredString("Controller")
        @Url.RequestContext.RouteData.GetRequiredString("Action")
        @Html.ViewContext.Controller.ControllerContext.RouteData.GetRequiredString("Controller")
    </div>
</body>
</html>
